/*
一般的企业级项目中分别有三个环境
开发环境，测试环境，线上环境
*/

const env = import.meta.env.NODE || 'development'

const EnvConfig = {
    development: {
        baseApi: "http://localhost:5000/api",
        signalRUrl: "http://localhost:5000/hub",
        //http://192.168.1.1
        mockApi: "/api"
    },
    test: {
        baseApi: "http://localhost:5050/api",
        signalRUrl: "http://localhost:5000/hub",
        mockApi: "/api"
    },
    prod: {
        baseApi: "http://localhost:5050/api",
        signalRUrl: "http://localhost:5000/hub",
        mockApi: "/api"
    },
}

export default {
    env,
    //mock的总开关,
    mock: false,
    ...EnvConfig[env]

}
